package com.tang.managementdemo.controller;

import com.tang.managementdemo.pojo.LogQueryParam;
import com.tang.managementdemo.pojo.PageResult;
import com.tang.managementdemo.pojo.Result;
import com.tang.managementdemo.service.LogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/log")
public class LogController {
    @Autowired
    private LogService logService;
    @GetMapping("/page")
    public Result  page(LogQueryParam logQueryParam){
        PageResult page = logService.page(logQueryParam);
        return Result.success(page);
    }
}
